package com.dingreading.cloud.admin.service.impl;

import com.dingreading.cloud.admin.entity.table.StudyVideoLogTableDef;
import com.mybatisflex.spring.service.impl.ServiceImpl;
import com.dingreading.cloud.admin.entity.StudyVideoLog;
import com.dingreading.cloud.admin.mapper.StudyVideoLogMapper;
import com.dingreading.cloud.admin.service.StudyVideoLogService;
import org.springframework.stereotype.Service;

/**
 *  服务层实现。
 *
 * @author Administrator
 * @since 2025-09-17
 */
@Service
public class StudyVideoLogServiceImpl extends BaseServiceImpl<StudyVideoLogMapper, StudyVideoLog, StudyVideoLogTableDef> implements StudyVideoLogService {

    @Override
    protected StudyVideoLogTableDef getTable() {
        return StudyVideoLogTableDef.studyVideoLog;
    }

    @Override
    public boolean existsByVideoExpireUid(String videoExpireUid) {
        return exists(table.videoExpireUid.eq(videoExpireUid));
    }
}
